
import time



def  show_time(func):
    def inner():
        stat_time = time.time()
        func()
        end_time = time.time()
        print("spend time is %s" % (end_time - stat_time))
        return func()
    return inner


@show_time
def logger():
    time.sleep(2)
    print("test time.......")

logger()